home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Graphics / RTGmaster / includes / asm / rtgmaster / rtgmaster.i < prev    next >
Encoding:
Text File  |  1997-09-22  |  6.9 KB  |  189 lines

  1. ;
  2. ;     $VER: rtgmaster.i 1.010 (08 Mar 1997)
  3. ;
  4.  
  5.         IFND    RTGMASTER_I
  6. RTGMASTER_I     SET     1
  7.  
  8.         IFND    UTILITY_TAGITEM_I
  9.         Include "utility/tagitem.i"
  10.         ENDC
  11.  
  12.         IFND    EXEC_LIBRARIES_I
  13.         Include "exec/libraries.i"
  14.         ENDC
  15.  
  16.         IFND    EXEC_TYPES_I
  17.         Include "exec/types.i"
  18.         ENDC
  19.  
  20.  
  21. * The TagItem ID's (ti_Tag values) for RtgScreenModeReq()
  22. *
  23. * If a tag is ommited the value in the square brackets will be used
  24. * as the default value.
  25.  
  26.     ENUM TAG_USER+1         ; smr_Tags (RtgScreenModeReq)
  27.  
  28.     EITEM smr_MinWidth      ;[320] This tag sets the minimum width in
  29.                             ;pixels which the user is allowed to select
  30.     EITEM smr_MaxWidth      ;[2048] This tag sets the maximum width in
  31.                             ;pixels which the user is allowed to select
  32.     EITEM smr_MinHeight     ;[200] This tag sets the minimum height in
  33.                             ;pixels which the user is allowed to select
  34.     EITEM smr_MaxHeight     ;[2048] This tag sets the maximum height in
  35.                             ;pixels which the user is allowed to select
  36.  
  37.     EITEM smr_PlanarRoundW  ;[16] RtgScreenModeReq will round user inputed
  38.                             ;values for Width to nearest higher multiple
  39.                             ;of thig tag for Planar display modes
  40.     EITEM smr_PlanarRoundH  ;[1] RtgScreenModeReq will round user inputed
  41.                             ;values for Height to nearest higher multiple
  42.                             ;of thig tag for Planar display modes
  43.  
  44.     EITEM smr_ChunkyRoundW  ;[1] RtgScreenModeReq will round user inputed
  45.                             ;values for Width to nearest higher multiple
  46.                             ;of thig tag for Chunky display modes
  47.     EITEM smr_ChunkyRoundH  ;[1] RtgScreenModeReq will round user inputed
  48.                             ;values for Height to nearest higher multiple
  49.                             ;of thig tag for Chunky display modes
  50.  
  51.     EITEM smr_ChunkySupport ;[0] This LONG is used to indicate which
  52.                             ;Chunky modes the user is allowed to select.
  53.                             ;A set bit means the mode is selectable.
  54.                             ;See the rtg_ChunkySupport tag for more
  55.                             ;information.
  56.  
  57.     EITEM smr_PlanarSupport ;[0] This LONG is used to indicate which
  58.                             ;Planar modes the user is allowed to select.
  59.                             ;A set bit means the mode is selectable.
  60.                             ;See the rtg_PlanarSupport tag for more
  61.                             ;information.
  62.  
  63.     EITEM smr_Buffers       ;[1] Using this tag you're can specify
  64.                             ;the number of buffers your application needs.
  65.                             ;Usually this ranges from 1-3.  Specify
  66.                             ;it here to filter out ScreenModes which can't
  67.                             ;handle the number of buffers you require.
  68.  
  69.     EITEM smr_ProgramUsesC2P;[TRUE] If the program doesn't use the c2p call you have
  70.                             ;to specify FALSE. In this case the c2p part of the
  71.                             ;window is hidden and the the current c2p module is not
  72.                             ;used when filtering the screen modes.
  73.  
  74.     EITEM smr_Dummy2        ; Deleted Tagitem
  75.  
  76.     EITEM smr_Dummy3        ; Deleted Tagitem
  77.  
  78.     EITEM smr_Dummy4        ; Deleted Tagitem
  79.  
  80. ;*******
  81. ; Attention: The following initial values are overwritten
  82. ; by the saved preferences if a valid preferences file
  83. ; is found.
  84.  
  85.     EITEM smr_InitialWidth  ;[320] Initial screen width
  86.                             ;The minimal/maximal selectable width is taken into account.
  87.  
  88.     EITEM smr_InitialHeight ;[200] Initial screen height
  89.                             ;The minimal/maximal selectable height is taken into account.
  90.  
  91.     EITEM smr_InitialDepth  ;[8] Log2 of number of colors
  92.     EITEM smr_InitialScreenMode ;[the first selectable screenmode]
  93.                                 ;Ptr to a string describing the ScreenMode
  94.                                 ;(this is essentially the string pointed to
  95.                                 ;by sm_Name)
  96.  
  97.     EITEM smr_InitialDefaultW   ;[TRUE] False if you don't want the Default
  98.                                 ;width gadget active.
  99.  
  100.     EITEM smr_InitialDefaultH   ;[TRUE] False if you don't want the Default
  101.                                 ;height gadget active.
  102.  
  103.     EITEM smr_PrefsFileName
  104.         ; ["RtgScreenMode.prefs"] (STRPTR)
  105.         ; Specifies the file where the selected screenmode is saved when the
  106.         ; user selects the save button
  107.  
  108.     EITEM smr_ForceOpen
  109.         ; [FALSE] If false, the screenmode requester reads the screenmode
  110.         ; from the file specified by smr_PrefsFileName and returns immediately.
  111.         ; The requester opens only in case of an error when reading the preferences
  112.         ; or when the user presses shift while the requester is called.
  113.         ; If true, the requester opens in any case and lets the user select a
  114.         ; new mode.
  115.  
  116.     EITEM smr_TitleText         ;["RTG Screenmode Requester"] (STRPTR)
  117.                                 ;The title text of the window
  118.  
  119.     EITEM smr_WindowLeftEdge    ;[0] The left edge of the requester window
  120.  
  121.     EITEM smr_WindowTopEdge     ;[0] The top edge of the requester window
  122.  
  123.     EITEM smr_Screen
  124.  
  125. ; [Default Pubscreen] (struct Screen *)
  126. ; The (custom or public) screen on which the screenmode requester should
  127. ; be opened
  128.  
  129.     EITEM smr_PubScreenName
  130.  
  131. ; [NULL] (STRPTR)
  132. ; The name of the public screen on which the screenmode
  133. ; requester should be opened; if not found, the default
  134. ; pubscreen is used.
  135.  
  136. ;End of RtgScreenModeReq() enumeration ***
  137.  
  138. *** End of RtgScreenModeReq() enumeration ***
  139.  
  140.  
  141.     
  142. * Execpt for the rb_LibBase structure this structure is private and for
  143. * the internal use of RtgMaster.library ONLY.  This structure will change
  144. * in the future.
  145.  
  146.  STRUCTURE RtgBase,0
  147.   STRUCT rb_LibBase,LIB_SIZE
  148.   ALIGNLONG
  149.   ULONG rb_SegList
  150.   APTR  rb_DosBase
  151.   APTR  rb_ExecBase
  152.   APTR  rb_GadToolsBase
  153.   APTR  rb_GfxBase
  154.   APTR  rb_IntBase
  155.   APTR  rb_UtilityBase
  156.   STRUCT rb_Track,8        ; Special memory tracking structure
  157.   APTR  rb_Libraries       ; Ptr to a list of RtgLibs structures
  158.   APTR  rb_FirstScreenMode ; Ptr to first ScreenMode structure
  159.   LABEL rb_SIZEOF
  160.  
  161. * This structure is private and for the internal use of RtgMaster.library
  162. * ONLY.  This structure will change in the future.
  163.  
  164.  STRUCTURE RDCMPData,0
  165.     APTR rdcmp_port
  166.     ULONG rdcmp_signal
  167.     APTR rdcmp_MouseX
  168.     APTR rdcmp_MouseY
  169.   LABEL rdcmp_SIZEOF
  170.  
  171.  STRUCTURE RtgLibs,0
  172.   APTR  rl_Next           ; Link to next structure
  173.   ULONG rl_ID
  174.   APTR  rl_LibBase
  175.   APTR  rl_SMList         ; Null if there aren't any screenmodes
  176.   APTR  rl_LastSM
  177.   UWORD rl_LibVersion
  178.   LABEL rl_SIZEOF
  179.  
  180. ;ECS_ID EQU     "ECS "
  181. ;AGA_ID EQU     "AGA "
  182. ;PICASSO_ID     EQU     "PICA"
  183. ;RETINA_ID      EQU     "RETI"
  184. ;MERLIN_ID      EQU     "MERL"
  185. ;EGS_ID EQU     "EGS "
  186. ;CYBGFX_ID      EQU     "CYBG"
  187.  
  188.         ENDC
  189.